package com.weilai.service;

import com.github.pagehelper.PageInfo;
import com.weilai.domain.Comments;
import com.weilai.domain.User;
import org.apache.ibatis.annotations.Delete;

import java.util.Map;

public interface CommentsService {
    // 点赞操作
    Map<String, Object> like(int userId, int commentsId);
    Map<String, Object> cancelLike(int userId, int commentsId);
    int isLikedByUser(int userId, int commentsId);

    public PageInfo<Comments> getCommentsByPostIdWithPaging(int postId, int pageNum, int pageSize) ;
    public PageInfo<Comments> getCommentsByVideoIdWithPaging(int video, int pageNum, int pageSize) ;


    // 根据用户id删除评论
    int deleteCommentByUserId(int userId);
}
